<?php

    include '../../Include/IncludeSecure.php';

    $plantillaP = new Panel( "../View/Html/Plantilla.html" );
    $plantillaEC = new Panel ( "../View/Html/Encabezado.html" );
    $plantillaEC->add( "TITULO" , "Agregar Proveedor" );
    $plantillaEC->add( $_SESSION );

    if ( $_SESSION['USR_PRIVILEGIO'] == 'ADMIN' ){
        $plantillaPrivilegio = new Panel ("../View/Html/MenuPrivilegio.html" );
        $plantillaEC->add("MENU_PRIVILEGIO",$plantillaPrivilegio);
    }

    $plantillaP->add( "ENCABEZADO" , $plantillaEC );
    $plantillaCON = new Panel( "../View/Html/AgregarProveedor.html" );
    $plantillaP->add( "CONTENIDO" , $plantillaCON );
    $plantillaPIE = new Panel( "../View/Html/Pie.html" );
    $plantillaP->add( "PIE" , $plantillaPIE );
    $plantillaP->show();
?>
